//
//  WiiHomeModel.m
//  iFeller
//
//  Created by Wii on 15/12/12.
//  Copyright © 2015年 Wii. All rights reserved.
//

#import "WiiHomeModel.h"

@interface WiiHomeModel ()
@end

@implementation WiiHomeModel

- (XYSqlite3 *)sql{
    if (!_sql) {
        _sql = [[XYSqlite3 alloc]init];
    }
    return _sql;
}

- (NSArray *)getMyTaskData{
    return [self.sql searchTheDataBaseWithtableName:TableName_MyTask];
}

- (NSArray *)getTheTaskAtHandData{
    return [self.sql searchTheDataBaseWithtableName:TableName_TheTaskAtHand];
}
- (NSMutableArray *)getFinishTaskData{
    return [self.sql searchTheDataBaseWithtableName:TableName_FinishTask];
}
- (NSArray *)searchTaskInFinishTableWithDate:(NSString *)date{
    return [self.sql conditionSearchTheDataBaseWithTableName:TableName_FinishTask searchDate:date];
}
@end
